Print number with commas as thousands separatorsΒΆ
Print number with commas as thousands separators.
print("{:,}".format(1000000))
print("{:,}".format(10000))
Output:
1,000,000
10,000
print("{:,}".format(1000000))
print("{:,}".format(10000))
Output:
1,000,000
10,000